Skip to main content

All Tokens

Queries all the tokens available in the Euclid layer.

query All_tokens($max: String, $min: String, $skip: Int, $limit: Int) {
router {
all_tokens(max: $max, min: $min, skip: $skip, limit: $limit) {
tokens
}
}
}

Example​

curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://api.euclidprotocol.com/graphql' \
    --data '{"query":"query All_tokens($max: String, $min: String, $skip: Int, $limit: Int) {\n  router {\n    all_tokens(max: $max, min: $min, skip: $skip, limit: $limit) {\n      tokens\n    }\n  }\n}","variables":{"max":"stars","min":"euclid","skip":null,"limit":7}}'

Open in Playground

Arguments​

NameTypeDescription
maxStringThe upper limit token ID to return (exclusive).
minStringThe lower limit token ID to start from (inclusive).
skipIntThe number of results to skip in the response.
limitIntThe maximum number of results to return.

Return Fields​

FieldTypeDescription
tokenStringThe Id of the token.